package com.xpgk.mvc.statistic.zbStatistic;

import java.util.Date;
import java.util.List;

import com.xpgk.mvc.base.BaseController;
import com.xpgk.mvc.organization.Organization;
import com.xpgk.mvc.statistic.dailyTotalStatistic.DailyNursingTotal;
import com.xpgk.mvc.user.User;

public class ZbDQJLDailyTotalStatisticController extends BaseController{
	
	
	public  void  index()
	{	
		
		render("zbDailyTotalDQJL.html");
	}
	
	
	
	
	public  void  getZbDailyTotalByDQJL()
	{
		String startdate  = getPara("_query.startdate");
		String lastdate  = getPara("_query.lastdate");
		splitPage.getQueryParam().put("lastdate", lastdate);
		splitPage.getQueryParam().put("startdate", startdate);
		String json = paging(splitPage,DailyNursingTotal.sqlId_zbDQJLlitPageSelect,DailyNursingTotal.sqlId_zbDQJLsplitPageFrom);
		
		renderJson(json);
		
	}
	
	public  void  tolookInfo()
	{
		
		String dqjlIds = getPara("dqjlIds");
		setAttr("organids", dqjlIds);
		render("zbDailyTotalInfo.html");
	
	}
	public  void  lookInfo()
	{
		String startdate  = getPara("_query.startdate");
		String lastdate  = getPara("_query.lastdate");
		String organids = getPara("_query.organIds");
		//Organization organization = Organization.dao.findById(organids);
		splitPage.getQueryParam().put("lastdate", lastdate);
		splitPage.getQueryParam().put("startdate", startdate);
		splitPage.getQueryParam().put("organids",  organids);
		String json = paging(splitPage,DailyNursingTotal.sqlId_zbinfolitPageSelect,DailyNursingTotal.sqlId_zbinfosplitPageFrom);
		renderJson(json);
	
	}
}
